<template>
  <el-container>
    <!-- 头部区域 -->
    <el-header>
      <!-- logo区域 -->
      <div>
        <img :src="logo" class="logo">
      </div>
      <!-- 搜索区域 -->
      <el-row>
        <el-col :span="8">
          <el-input v-model="search" size="medium" placeholder="请输入基金名称或代码" class="input-with-select">
            <el-button slot="append" type="primary" size="medium">与你搜索</el-button>
          </el-input>
        </el-col>
      </el-row>
      <div class="search-container" />
    </el-header>

    <!-- 页面区域 -->
    <el-main>
      .
    </el-main>

    <!-- 底部区域 -->
    <el-footer>
      .
    </el-footer>
  </el-container>
</template>

<script>
import Logo from '@/assets/images/logo.png'

export default {
  name: 'FrontHome',
  data() {
    return {
      logo: Logo,
      search: ''
    }
  }
}
</script>

<style lang="scss" scoped>
.el-container {
  height: 100%
}

.el-header {
  display: flex;
  flex-direction: row;
  background-color: #fff;
  color: #333;
  line-height: 60px;
}

.el-footer {
  background-color: #B3C0D1;
  color: #333;
  text-align: center;
  line-height: 30px;
  height: 30px !important;
}

.el-main {
  background-color: #E9EEF3;
  color: #333;
  text-align: center;
}

.logo {
  height: 60px;
}

.search-container {
  display: flex;
  align-items: flex-start;
}

.el-select {
  width: 3100px;
}

.input-with-select {
  width: 592px;

  .el-input-group__prepend {
    width: 592px;
    height: 40px;
    background-color: #fff;
  }

  .el-button {
    font-size: 16px;
    width: 112px;
    height: 36px;
    color: #fff;
    background: #4e6ef2;
  }
}

</style>
